var Express = require('express'),
    Router = Express.Router(),

    keywordPolicy = require('../policies/policy'),

    keywordController = require('../controllers/keyword.controller');

Router.route('/getWordCloud').all(keywordPolicy.isAllowed).post(keywordController.getWordCloud);

Router.route('/getUserKeywords').all(keywordPolicy.isAllowed).post(keywordController.getUserKeywords);

Router.route('/findKeywordsByWords').all(keywordPolicy.isAllowed).post(keywordController.findKeywordsByWords);

Router.route('/findKeywordsByPercent').all(keywordPolicy.isAllowed).post(keywordController.findKeywordsByPercent);

module.exports = Router;
